#pragma once
#include <GLES2/gl2.h>
#include <EGL/egl.h>

class DisplayDevice_EGL
{
	EGLSurface m_EGLSurface;
	EGLDisplay m_EGLDisplay;
	EGLContext m_EGLContext;

	// METHODS
	bool CompileShaders();
	GLuint CreateShader(GLenum type, const char* pSource);
	bool CheckShader(GLint shader);

public:
	DisplayDevice_EGL(void);
	~DisplayDevice_EGL(void);

	void Resize(int w, int h);
	bool Initialize(int gl_version, void *nativeWindow);
	void Terminate();
	void Render();
};

